<div class="bgc-w box box-primary">
    <!--盒子头-->
    <div class="box-header">
        <h3 class="box-title">
            <a href="" class="label label-success" style="padding: 5px;margin-left:5px;">
                <span class="glyphicon glyphicon-refresh"></span> 刷新
            </a>
        </h3>
        <div class="box-tools">
            <div class="input-group" style="width: 150px;">
                <input type="text" class="form-control input-sm cha" id="cha" placeholder="按标题查找"
                       value="${page.title!''}"/>
                <div class="input-group-btn chazhao" id="chazhao">
                    <a class="btn btn-sm btn-default "><span
                                class="glyphicon glyphicon-search"></span></a>
                </div>
            </div>
        </div>
    </div>
    <!--盒子身体-->
    <div class="box-body no-padding">
        <div class="table-responsive">
            <table class="table table-hover">
                <tr>
                    <th scope="col"><span class="paixu thistype">类型

						</span></th>
                    <th scope="col"><span class="paixu thisstatus">状态

						</span></th>
                    <th scope="col">标题</th>
                    <th scope="col"><span class="paixu thistime">发布时间

						</span></th>
                    <th scope="col">发布人</th>
                    <th scope="col">部门</th>
                    <th scope="col">置顶</th>
                    <th scope="col">链接</th>
                    <th scope="col">操作</th>
                </tr>
                <#list list as this>
                    <tr>

                        <td>${this.typeList.typeName!''}</td>
                        <td>
                            <span class="label ${(this.statusList.statusColor)!''}">${this.statusList.statusName!''}</span>
                        </td>
                        <#if this.noticeUserRelation.isRead?? && this.noticeUserRelation.isRead==0>
                            <td class="c"><span>${(this.title)!''}</span></td>
                        <#else>
                            <td><span>${(this.title)!''}</span></td>
                        </#if>
                        <td><span>${(this.noticeTime)!''}</span></td>
                        <td><span>${this.userInfo.userName!''}</span></td>
                        <td><span>${this.userInfo.dept.deptName!''}</span></td>
                        <#if this.isTop==1>
                            <td><span class="labels"><label><input
                                                type="checkbox" checked disabled><i>✓</i></label></span></td>
                        <#else>
                            <td><span class="labels"><label><input
                                                type="checkbox" disabled><i>✓</i></label></span></td></#if>
                        <#if this.url!=''>
                            <td><span class="glyphicon glyphicon-link"></span></td>
                        <#else>
                            <td><span class="labels"></span></td></#if>
                        <td>
                            <a href="informshow?id=${this.typeList.typeId!''}&read=${this.noticeUserRelation.isRead!''}&relationid=${this.noticeUserRelation.relatinNoticeId!''}"
                               class="label xiugai chakan"><span class="glyphicon glyphicon-search"></span>
                                查看</a>

                            <#if this.noticeUserRelation.isRead?? && this.noticeUserRelation.isRead==0>
                                <a href="forwardother?noticeId=${this.noticeId!''}"
                                   onclick="{return confirm('确定转发给自己的下属吗？');};"
                                   class="label xinzeng chakan forwardthis"><span
                                            class="glyphicon glyphicon-log-out"></span>
                                    转发</a>
                            <#else>
                                <a href="javascript:void(0);" class="label sheding chakan"><span
                                            class="glyphicon glyphicon-log-out"></span>
                                    已转发</a>
                            </#if>

                            <#if this.noticeUserRelation.isRead?? && this.noticeUserRelation.isRead==0>
                            <#else>
                                <a onclick="{return confirm('删除该记录将不能恢复，确定删除吗？');};"
                                   href="informlistdelete?id=${this.noticeId!''}" class="label shanchu">
                                    <span class="glyphicon glyphicon-remove"></span> 删除
                                </a></#if></td>
                    </tr>
                </#list>
            </table>
        </div>
    </div>
    <!--盒子尾-->
    <#include "/common/paging.ftl"/>
</div>
<script>
    $(function () {
        $(".chakan").click(function () {
            var $information = $(this).parents("td").siblings(".c").find("span").text();
            if ($information != "") {
                parent.changeinformation();
            }
        });
    });

    $(function () {
        $(".chazhao").click(function () {
            var title = $(".cha").val();
            $(".thistable").load("seinfromlist", {title: title});
        })
    })
</script>